package com.itany.mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 石小俊
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_dept")
public class Dept {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String remark;
    @TableLogic
    private Integer isDeleted;

    public Dept(String name, String remark, Integer isDeleted) {
        this.name = name;
        this.remark = remark;
        this.isDeleted = isDeleted;
    }
}
